﻿<Application 
    x:Class="SSTU.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:xna="clr-namespace:Microsoft.Xna.Framework;assembly=Microsoft.Xna.Framework.Interop"
	xmlns:viewModelCore="clr-namespace:SSTU.ViewModel.Core"
	xmlns:sstuConverters="clr-namespace:SSTU.Controls.Converters">

	<Application.Resources>
		<viewModelCore:ViewModelLocator x:Key="ViewModelLocator" />
		<sstuConverters:BooleanToVisibilityConverter x:Key="TrueToVisibleConverter" TrueValue="Visible" FalseValue="Collapsed" />
		<sstuConverters:BooleanToVisibilityConverter x:Key="FalseToVisibleConverter" TrueValue="Collapsed" FalseValue="Visible" />
	</Application.Resources>

	<Application.ApplicationLifetimeObjects>
		<!--Required object that handles lifetime events for the application-->
		<shell:PhoneApplicationService 
            Launching="OnApplicationLaunching"
			Closing="OnApplicationClosing" 
            Activated="OnApplicationActivated"
			Deactivated="OnApplicationDeactivated">
		</shell:PhoneApplicationService>
		<!--The SharedGraphicsDeviceManager is used to render with the XNA Graphics APIs-->
		<xna:SharedGraphicsDeviceManager />
	</Application.ApplicationLifetimeObjects>

</Application>